Skip to main content

CanvasPropertyCapStyle

Type

operator

Summary

The current cap style of a canvas.

Syntax

the cap style of <mCanvas>

Description

Determines how to draw the end points of a path when stroking. Can be one of "butt", "square", or "round".

Parameters

NameTypeDescription

mCanvas

An expression which evaluates to a canvas.

Examples

// Draw a line with rounded ends.
set the cap style of this canvas to "round"
stroke line path from point [50,100] to point [100,50] on this canvas
Thank you for your feedback!

Was this page helpful?